package cn.iocoder.yudao.module.promotion.controller.admin.points.vo.pointsactivity;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Collection;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 积分活动分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class PointsActivityPageReqVO extends PageParam {

    @Schema(description = "活动名称", example = "李四")
    private String name;

    @Schema(description = "活动描述")
    private String des;

    @Schema(description = "商品 SPU ID", example = "12475")
    private Long spuId;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;

    @Schema(description = "活动状态：0开启 1关闭", example = "2")
    private Byte status;

    @Schema(description = "活动类型（取自数据字典）", example = "2")
    private Byte activityType;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "积分活动名称（多个逗号隔开）", example = "")
    private String names;

    @Schema(description = "积分活动名称集合", example = "['test1','test2']")
    private Collection<String> nameList;
}
